#include "BinaryTree.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>


int main()
{
    BSTree *tree = InitBSTree();
    srand(time(NULL));

    for(int i = 1; i < 11; i++)
    {
        InsertTree(tree,i);
    }
    TravelPrev(tree);
    printf("\n");
    TravelMid(tree);
    printf("\n");
    TravelPost(tree);
    printf("\n");
    int num;
    scanf("%d",&num);
    DeleteTree(tree,num);
    TravelPrev(tree);
    printf("\n");
    TravelMid(tree);
    printf("\n");
    TravelPost(tree);
    printf("\n");
    return 0;
}